package com.source.baseData.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.source.baseData.entity.Stalls;
import com.baomidou.mybatisplus.extension.service.IService;
import com.source.labelAndBarcode.vo.StallsVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Joey
 * @since 2021-02-10
 */
public interface StallsService extends IService<Stalls> {

    List<StallsVo> findAll();

    IPage<StallsVo> findAllOnPagination(Page<StallsVo> page);

    List<StallsVo> findAllOnMultiStatus(int i);

    IPage<StallsVo> findAllOnMultiStatusAndPagination(Page<StallsVo> page, int i);

    List<StallsVo> findByLikeName(String name);

    IPage<StallsVo> findByLikeNameOnPagination(Page<StallsVo> page, String keyWord);

    List<StallsVo> findByUserId(String userId);

    List<StallsVo> findBySlaughterHouseId(String slaughterHouseId);

    IPage<StallsVo> findByUserIdOnPagination(Page<StallsVo> page, String userId);

    IPage<StallsVo> findBySlaughterHouseIdOnPagination(Page<StallsVo> page, String slaughterHouseId);

    StallsVo findById(String id);

    IPage<StallsVo> findByUnChecked(Page<StallsVo> page);

    IPage<StallsVo> findByUnCheckedAndKeyWord(String keyWord, Page<StallsVo> page);
}
